<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="renderer" content="webkit">
    <meta name="force-rendering" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="shortcut icon" type="images/x-icon"
          href="https://blog.zjzaki.com/upload/2022/04/g-8ad7184257c941e989dd029d538af30c.png">
    <link rel="stylesheet" href="view/css/style.css" type="text/css">
    <script>
        function getCookieItem(name) {
            var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
            if (arr != null) {
                return decodeURIComponent(arr[2]);
                return null;
            }
        }

        let cookieItem = getCookieItem('mx_style');
        if (cookieItem && cookieItem !== 'white') {
            document.querySelector('#cssFile').href = '/mxtheme/css/' + getCookieItem('mx_style') + '.css'
        }
    </script>
    <!--引入vue和axios-->
    <script src="view/js/axios.js"></script>
    <script src="view/js/vue.js"></script>
    <link rel="stylesheet" href="view/css/swiper-bundle.min.css" type="text/css">
    <script src="view/js/jquery.min.js"></script>
    <script src="view/js/home.js"></script>
    <script src="view/js/jquery.lazyload.js"></script>
    <script src="view/js/jquery.cookie.js"></script>

    <script src="view/js/swiper-bundle.min.js"></script>
    <script>
        $(function () {
            $('#searchbutton').click(function () {
                if ($('.search-input').val() == '') {
                    layer.msg('请输入搜索关键词！', {
                        time: 1000,
                        shade: 0.8
                    });
                    $(".search-input").focus();
                    return false;
                }
            });
        });
    </script>
    <style>
        @media (max-width: 559px) {
            .homepage .navbar {
                width: calc(100vw - 91px);
            }

            .navbar.open, .page .navbar {
                width: calc(100vw - 135px);
            }

            .side-op {
                width: 130px;
            }

            .homepage .side-op.open .header-op-search {
                display: block;
            }
        }

        .delete {
            text-decoration: none;
            color: #fff;
            background-color: #d9534f;
            border-color: #d43f3a;
            display: inline-block;
            margin-bottom: 0;
            font-weight: 400;
            text-align: center;
            white-space: nowrap;
            vertical-align: middle;
            -ms-touch-action: manipulation;
            touch-action: manipulation;
            cursor: pointer;
            background-image: none;
            border: 1px solid transparent;
            padding: 6px 12px;
            font-size: 14px;
            line-height: 1.42857143;
            border-radius: 4px;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
    </style>
    <title>itg电影网</title>
    <!-- 引入阿里巴巴图标库 -->
    <script src="./iconfont/iconfont.js"></script>
    <style>
        .icon {
            width: 1em;
            height: 1em;
            vertical-align: -0.15em;
            fill: currentColor;
            overflow: hidden;
        }
    </style>

</head>
<body>
<div class="homepage" id="body">
    <div class="header">
        <div class="header-box">
            <div class="logo">
                <a href="https://www.7itv.com/" title="飘花播播">
                    <img class="logo2" src="view/images/logo.png" alt="飘花播播">
                </a>
            </div>
            <div class="search-box">
                <div class="searchbar-main">
                    <form name="search" method="get" action="https://www.7itv.com/vodsearch/-------------.html"
                          onsubmit="return qrsearch();">
                        <div class="searchbar">
                            <input class="search-input" type="text" name="wd" autocomplete="off"
                                   placeholder="请输入影片名搜索">
                            <button class="search-btn search-go" id="searchbutton" type="submit">
                                <svg class="icon" aria-hidden="true">
                                    <use xlink:href="#icon-sousuo"></use>
                                </svg>
                            </button>
                            <button class="cancel-btn" type="button">取消</button>
                        </div>
                        <div class="search-recommend-box">
                            <div class="search-recommend">
                                <div class="search-recommend-title"><strong>大家都在搜</strong></div>
                                <div class="search-tag">
                                    <a href="" class="hot"> <i class="icon-hot"></i>刘老根</a>
                                    <a href="" class="hot"><i class="icon-hot"></i>风吹半夏</a>
                                    <a href="" class="hot"><i class="icon-hot"></i>卿卿日常</a>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="header-op">
                <div class="header-op-list">
                    <div class="drop">
                        <div class="header-op-list-btn header-op-history">
                            <svg class="icon" aria-hidden="true">
                                <use xlink:href="#icon-shijianchuo"></use>
                            </svg>
                            <span>观看记录</span>
                        </div>
                        <div class="drop-content drop-history">
                            <div class="drop-content-box">
                                <ul class="drop-content-items historical">
                                    <li class="drop-item drop-item-title">
                                        <svg class="icon" aria-hidden="true">
                                            <use xlink:href="#icon-shijianchuo"></use>
                                        </svg>
                                        <strong>我的观影记录</strong>
                                    </li>
                                    <li class="drop-item drop-item-content nolist">
                                        <div class="drop-prompt">暂无观看影片的记录</div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="shortcuts-mobile-overlay"></div>
                    </div>
                    <div id="login">
                        <div class="mac_user header-op-user" title="会员中心" v-if="!user" @click="userlogin">登录</div>
                        <div class="mac_user header-op-user" title="会员中心" v-else>个人中心</div>
                        <div class="header-op-list-btn header-op-search">
                            <i class="icon icon-search"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="sidebar">
        <div class="navbar swiper-container-initialized swiper-container-horizontal swiper-container-pointer-events swiper-container-free-mode">
            <ul class="navbar-items swiper-wrapper" id="swiper-wrapper-9df256898cb2885c" aria-live="polite">
                <li class="swiper-slide navbar-item active swiper-slide-active" role="group" aria-label="1 / 8">
                    <a href="" class="links">
                        <div class="current"></div>
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-shouye"></use>
                        </svg>
                        <span>首页</span>
                    </a>
                </li>
                <li class="navbar-hr"></li>
                <li class="swiper-slide  navbar-item swiper-slide-next" role="group" aria-label="2 / 8">
                    <a href="" title="电影" class="links" @click.prevent="switchPage(2)">
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-dianying"></use>
                        </svg>
                        <span>电影</span></a>
                </li>
                <li class="swiper-slide navbar-item" role="group" aria-label="3 / 8">
                    <a href="" title="剧集" class="links">
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-dianshiqiangdianshiqiangshitu"></use>
                        </svg>
                        <span>剧集</span></a>
                </li>
                <li class="swiper-slide navbar-item" role="group" aria-label="4 / 8">
                    <a href="" title="综艺" class="links">
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-zongyi"></use>
                        </svg>
                        <span>综艺</span>
                    </a>
                </li>
                <li class="swiper-slide navbar-item" role="group" aria-label="5 / 8">
                    <a href="" title="动漫" class="links">
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-dongman"></use>
                        </svg>
                        <span>动漫</span></a>
                </li>
                <li class="navbar-hr"></li>
                <li class="swiper-slide navbar-item" role="group" aria-label="6 / 8">
                    <a href="" class="links">
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-shandian"></use>
                        </svg>
                        <span>更新</span><small>347</small>
                    </a>
                </li>
                <li class="swiper-slide navbar-item" role="group" aria-label="7 / 8">
                    <a href="" class="links">
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-tubiaozhutu"></use>
                        </svg>
                        <span>热榜</span>
                    </a>
                </li>
                <li class="swiper-slide navbar-item" role="group" aria-label="8 / 8">
                    <a href="" class="links" @click.prevent="switchPage(8)" @click="showCollect()">
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-shoucang"></use>
                        </svg>
                        <span>我的收藏</span>
                    </a>
                </li>
            </ul>
            <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>
        </div>
        <div class="side-op">
            <div class="header-op-list">
                <div class="drop">
                    <div class="header-op-list-btn header-op-history">
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-shijianchuo"></use>
                        </svg>
                        <span>观看记录</span>
                    </div>
                    <div class="drop-content drop-history">
                        <div class="drop-content-box">
                            <ul class="drop-content-items historical">
                                <li class="drop-item drop-item-title">
                                    <svg class="icon" aria-hidden="true">
                                        <use xlink:href="#icon-shijianchuo"></use>
                                    </svg>
                                    <strong>我的观影记录</strong>
                                </li>
                                <li class="drop-item drop-item-content nolist">
                                    <div class="drop-prompt">暂无观看影片的记录</div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="shortcuts-mobile-overlay"></div>
                </div>
                <div class="header-op-list-btn header-op-search"><i class="icon icon-search"></i></div>
                <div class="member_group">
                    <div class="mac_user"><img src="view/images/touxiang.png" class="useimg">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--    <script>-->
    <!--        $(document).scroll(function () {-->
    <!--            var H = $(document).scrollTop();-->
    <!--            if (H > 20) {-->
    <!--                $(".sidebar").addClass("sidebar-bg");-->
    <!--            } else {-->
    <!--                $(".sidebar").removeClass("sidebar-bg");-->
    <!--            }-->
    <!--            if (H > 140) {-->
    <!--                $(".navbar").addClass("open");-->
    <!--                $(".side-op").addClass("open");-->
    <!--            } else {-->
    <!--                $(".navbar").removeClass("open");-->
    <!--                $(".side-op").removeClass("open");-->
    <!--            }-->
    <!--        });-->
    <!--    </script>-->
    <!--    <style>-->
    <!--        .homepage .side-op .header-op-search {-->
    <!--            display: none;-->
    <!--        }-->
    <!--    </style>-->
    <!--    <style>-->
    <!--        @media (max-width: 559px) {-->
    <!--            .homepage .header {-->
    <!--            }-->

    <!--            .homepage .sidebar {-->
    <!--            }-->
    <!--        }-->
    <!--    </style>-->
    <div class="main" id="mainPage">
        <div class="content" id="app">
            <div class="container-slide" id="banner">
                <div class="swiper gallery-thumbs swiper-big swiper-container-initialized swiper-container-horizontal swiper-container-pointer-events">
                    <div class="swiper-wrapper" id="swiper-wrapper-8f5f087e2d734f85" aria-live="off">
                        <div class="swiper-slide swiper-slide-duplicate swiper-slide-next swiper-slide-duplicate-prev"
                             data-swiper-slide-index="2" role="group" aria-label="3 / 3" style="width: 1239px;">
                            <a href="https://www.7itv.com/voddetail/201083.html" class="banner"
                               style="background: url(view/images/cc420cff72af4184b69e026cde9a56cc.jpg)center no-repeat;background-size: cover;">
                            </a>
                            <div class="mobile-v-info">
                                <div class="v-title">
                                    <span>三体2023</span>
                                </div>
                                <div class="v-ins">
                                    <p>全30集</p>
                                    <p>
                                        2005年，地球基础科学出现了异常的扰动，一时间科学界风雨飘飘，人心惶惶。离奇自杀的科学家，近乎神迹的倒计时，行事隐秘的科学边，神秘莫测的《三体》游戏……纳米科学家汪淼被警官史强带到联合作战中心，并潜
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide swiper-slide-duplicate-active" data-swiper-slide-index="0"
                             role="group" aria-label="1 / 3" style="width: 1239px;">
                            <a href="https://www.7itv.com/voddetail/198611.html" class="banner"
                               style="background: url(view/images/0de980dfce618f5193398822d58f35a8.jpg)center no-repeat;background-size: cover;">
                            </a>
                            <div class="mobile-v-info">
                                <div class="v-title"><span>极限挑战宝藏行 国家公园季</span></div>
                                <div class="v-ins">
                                    <p>更新至第20230228期</p>
                                    <p>
                                        东方卫视环保公益体验节目首发成员为秦昊、岳云鹏、金靖、黄明昊和新朋友王子异。本季成员们将走进国家公园，秉着“一起向自然”的精神，感受探索的奇妙，发现身边的宝藏美景。从推动绿色发展，促进人与自然和谐共生
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide" data-swiper-slide-index="1" role="group" aria-label="2 / 3"
                             style="width: 1239px;">
                            <a href="https://www.7itv.com/voddetail/203103.html" class="banner"
                               style="background: url(view/images/202302121676174891616377.jpg)center no-repeat;background-size: cover;">
                            </a>
                            <div class="mobile-v-info">
                                <div class="v-title"><span>显微镜下的大明之丝绢案</span></div>
                                <div class="v-ins">
                                    <p>已完结</p>
                                    <p> 　　该剧改编自马伯庸的同名小说，算学天才帅家默（张若昀
                                        饰）因一次偶然，发现仁华县税赋账册一个长达百年的赋税错误，开启了纠错证实之路。百姓、官员、乡绅，不同阵营因丝绢案牵扯在一起，纠葛不断，相互斗法太
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide swiper-slide-prev swiper-slide-duplicate-next"
                             data-swiper-slide-index="2" role="group" aria-label="3 / 3" style="width: 1239px;">
                            <a href="https://www.7itv.com/voddetail/201083.html" class="banner"
                               style="background: url(view/images/cc420cff72af4184b69e026cde9a56cc.jpg)center no-repeat;background-size: cover;">
                            </a>
                            <div class="mobile-v-info">
                                <div class="v-title"><span>三体2023</span></div>
                                <div class="v-ins">
                                    <p>全30集</p>
                                    <p>
                                        2005年，地球基础科学出现了异常的扰动，一时间科学界风雨飘飘，人心惶惶。离奇自杀的科学家，近乎神迹的倒计时，行事隐秘的科学边，神秘莫测的《三体》游戏……纳米科学家汪淼被警官史强带到联合作战中心，并潜
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide swiper-slide-duplicate swiper-slide-active"
                             data-swiper-slide-index="0" role="group" aria-label="1 / 3" style="width: 1239px;">
                            <a href="https://www.7itv.com/voddetail/198611.html" class="banner"
                               style="background: url(view/images/0de980dfce618f5193398822d58f35a8.jpg)center no-repeat;background-size: cover;">
                            </a>
                            <div class="mobile-v-info">
                                <div class="v-title"><span>极限挑战宝藏行 国家公园季</span></div>
                                <div class="v-ins">
                                    <p>更新至第20230228期</p>
                                    <p>
                                        东方卫视环保公益体验节目首发成员为秦昊、岳云鹏、金靖、黄明昊和新朋友王子异。本季成员们将走进国家公园，秉着“一起向自然”的精神，感受探索的奇妙，发现身边的宝藏美景。从推动绿色发展，促进人与自然和谐共生
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>
                </div>
                <div class="sm-swiper">
                    <div class="swiper gallery-top swiper-small swiper-container-initialized swiper-container-horizontal swiper-container-pointer-events">
                        <div class="swiper-wrapper" id="swiper-wrapper-b82a01010d3aeaee8e" aria-live="polite">
                            <div class="swiper-slide swiper-slide-duplicate swiper-slide-next swiper-slide-duplicate-prev"
                                 data-swiper-slide-index="2" role="group" aria-label="3 / 3"
                                 style="width: 187px;">
                                <div class="pic">
                                    <a href="">
                                        <img src="view/images/a568dbd78e257cfa806b89bbba6fdde2.jpg" alt="三体2023">
                                    </a>
                                </div>
                                <div class="title">
                                    <a href="">三体2023</a>
                                </div>
                                <div class="ins">
                                    <p>全30集</p>
                                    <p class="ins">
                                        2005年，地球基础科学出现了异常的扰动，一时间科学界风雨飘飘，人心惶惶。离奇自杀的科学家，近乎神迹的倒计时，
                                        行事隐秘的科学边，神秘莫测的《三体》游戏……纳米科学家汪淼被警官史强带到联合作战中心，并潜
                                    </p>
                                </div>
                            </div>
                            <div class="swiper-slide swiper-slide-duplicate-active" data-swiper-slide-index="0"
                                 role="group" aria-label="1 / 3" style="width: 187px;">
                                <div class="pic">
                                    <a href="">
                                        <img src="view/images/5b2dcd1b96d92d6315f167db576211d9.jpg" alt="极限挑战宝藏行 国家公园季">
                                    </a>
                                </div>
                                <div class="title">
                                    <a href="">极限挑战宝藏行国家公园季</a>
                                </div>
                                <div class="ins">
                                    <p>更新至第20230228期</p>
                                    <p class="ins">
                                        东方卫视环保公益体验节目首发成员为秦昊、岳云鹏、金靖、黄明昊和新朋友王子异。本季成员们将走进国家公园，秉着“一起向自然”的精神，感受探索的奇妙，发现身边的宝藏美景。从推动绿色发展，促进人与自然和谐共生
                                    </p>
                                </div>
                            </div>
                            <div class="swiper-slide" data-swiper-slide-index="1" role="group"
                                 aria-label="2 / 3" style="width: 187px;">
                                <div class="pic">
                                    <a href="">
                                        <img src="view/images/47e53671e6ed5045b6d74bd9777e3209.jpg" alt="显微镜下的大明之丝绢案">
                                    </a>
                                </div>
                                <div class="title">
                                    <a href="">显微镜下的大明之丝绢案</a>
                                </div>
                                <div class="ins">
                                    <p>已完结</p>
                                    <p class="ins"> 　　该剧改编自马伯庸的同名小说，算学天才帅家默（张若昀
                                        饰）因一次偶然，发现仁华县税赋账册一个长达百年的赋税错误，开启了纠错证实之路。百姓、官员、乡绅，不同阵营因丝绢案牵扯在一起，纠葛不断，相互斗法太
                                    </p>
                                </div>
                            </div>
                            <div class="swiper-slide swiper-slide-prev swiper-slide-duplicate-next"
                                 data-swiper-slide-index="2" role="group" aria-label="3 / 3"
                                 style="width: 187px;">
                                <div class="pic">
                                    <a href="">
                                        <img src="view/images/a568dbd78e257cfa806b89bbba6fdde2.jpg"
                                             alt="三体2023">
                                    </a>
                                </div>
                                <div class="title"><a
                                        href="">三体2023</a></div>
                                <div class="ins">
                                    <p>全30集</p>
                                    <p class="ins">
                                        2005年，地球基础科学出现了异常的扰动，一时间科学界风雨飘飘，人心惶惶。离奇自杀的科学家，近乎神迹的倒计时，行事隐秘的科学边，神秘莫测的《三体》游戏……纳米科学家汪淼被警官史强带到联合作战中心，并潜
                                    </p>
                                </div>
                            </div>
                            <div class="swiper-slide swiper-slide-duplicate swiper-slide-active"
                                 data-swiper-slide-index="0" role="group" aria-label="1 / 3"
                                 style="width: 187px;">
                                <div class="pic">
                                    <a href="">
                                        <img src="view/images/5b2dcd1b96d92d6315f167db576211d9.jpg"
                                             alt="极限挑战宝藏行 国家公园季">
                                    </a>
                                </div>
                                <div class="title">
                                    <a href="">极限挑战宝藏行国家公园季</a>
                                </div>
                                <div class="ins">
                                    <p>更新至第20230228期</p>
                                    <p class="ins">
                                        东方卫视环保公益体验节目首发成员为秦昊、岳云鹏、金靖、黄明昊和新朋友王子异。本季成员们将走进国家公园，秉着“一起向自然”的精神，感受探索的奇妙，发现身边的宝藏美景。从推动绿色发展，促进人与自然和谐共生
                                    </p>
                                </div>
                            </div>
                        </div>
                        <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>
                    </div>
                    <!-- 前进后退按钮 -->
                    <div class="swiper-button-prev" tabindex="0" role="button" aria-label="Previous slide"
                         aria-controls="swiper-wrapper-8f5f087e2d734f85">
                        <svg rseat="712211_banner_left" width="20" height="20"
                             xmlns="http://www.w3.org/2000/svg" class="qy20-h-carousel__arrow left"
                             data-v-1ea95016="">
                            <path
                                    d="M10 0c5.523 0 10 4.477 10 10s-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0zm2.439 4.95a1.429 1.429 0 00-2.02 0L5.367 10l5.05 5.05.125.112c.56.444 1.378.407 1.896-.111l.11-.125a1.429 1.429 0 00-.11-1.896L9.409 10l3.03-3.03.11-.125a1.429 1.429 0 00-.11-1.896z"
                                    fill="#FFF" fill-rule="evenodd" data-v-1ea95016=""></path>
                        </svg>
                    </div>
                    <div class="swiper-button-next" tabindex="0" role="button" aria-label="Next slide"
                         aria-controls="swiper-wrapper-8f5f087e2d734f85">
                        <svg rseat="712211_banner_right" width="20" height="20"
                             xmlns="http://www.w3.org/2000/svg" class="qy20-h-carousel__arrow right"
                             data-v-1ea95016="">
                            <path
                                    d="M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zM7.561 4.95a1.429 1.429 0 012.02 0L14.633 10l-5.05 5.05-.125.112a1.429 1.429 0 01-1.896-.111l-.11-.125a1.429 1.429 0 01.11-1.896l3.03-3.03-3.03-3.03-.11-.125a1.429 1.429 0 01.11-1.896z"
                                    fill="#FFF" fill-rule="evenodd" data-v-1ea95016=""></path>
                        </svg>
                    </div>
                    <!-- 分页 -->
                    <div class="swiper-pagination swiper-pagination-clickable swiper-pagination-bullets">
								<span class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0"
                                      role="button" aria-label="Go to slide 1">
								</span>
                        <span class="swiper-pagination-bullet" tabindex="0" role="button"
                              aria-label="Go to slide 2">
								</span>
                        <span class="swiper-pagination-bullet" tabindex="0" role="button"
                              aria-label="Go to slide 3"></span>
                    </div>
                </div>
            </div>

            <div>
                <!-- 详细页 -->
                <div class="content" id="movieInfo" style="display: none">
                    <div class="module module-info">
                        <div class="module-main">
                            <div class="module-info-poster">
                                <div class="module-item-cover">
                                    <div class="module-item-pic">
                                        <img class="ls-is-cached lazy lazyload"
                                             :src="movieDetail.movie_Picture"
                                             :alt="movieDetail.movie_Name" style="">
                                    </div>
                                </div>
                            </div>
                            <div class="module-info-main">
                                <div class="module-info-heading">
                                    <h1>{{movieDetail.movie_Name}}</h1>
                                    <div class="module-info-tag">
                                        <div class="module-info-tag-link">
                                            <a :title="movieDetail.movie_Age" href="">{{movieDetail.movie_Age}}</a>
                                        </div>
                                        <div class="module-info-tag-link">
                                            <a :title="movieDetail.movie_Place" href="">{{movieDetail.movie_Place}}</a>
                                        </div>
                                        <div class="module-info-tag-link">
                                            {{movieDetail.movie_Type}}
                                        </div>
                                    </div>
                                </div>
                                <div class="module-info-content">
                                    <div class="module-info-items">
                                        <div class="module-info-item module-info-introduction">
                                            <div class="module-info-introduction-content">
                                                <p>
                                                    {{movieDetail.movie_Introduction}}
                                                </p>
                                            </div>
                                        </div>
                                        <div class="module-info-item"><span class="module-info-item-title">译名：</span>
                                            <div class="module-info-item-content">
                                                {{movieDetail.movie_ChineseName}}
                                            </div>
                                        </div>
                                        <div class="module-info-item"><span class="module-info-item-title">导演：</span>
                                            <div class="module-info-item-content">
                                                {{movieDetail.movie_Director}}
                                            </div>
                                        </div>
                                        <div class="module-info-item"><span class="module-info-item-title">主演：</span>
                                            <div class="module-info-item-content">
                                                {{movieDetail.movie_Actor}}
                                            </div>
                                        </div>
                                        <div class="module-info-item"><span class="module-info-item-title">编剧：</span>
                                            <div class="module-info-item-content">
                                                {{movieDetail.movie_Scriptwriter}}
                                            </div>
                                        </div>
                                        <div class="module-info-item">
                                            <span class="module-info-item-title">上映：</span>
                                            <div class="module-info-item-content">{{movieDetail.movie_ReleaseDate}}
                                            </div>
                                        </div>
                                        <div class="module-info-item" v-if="movieDetail.movie_Language">
                                            <span class="module-info-item-title">语言：</span>
                                            <div class="module-info-item-content">{{movieDetail.movie_Language}}</div>
                                        </div>
                                        <div class="module-info-item" v-if="movieDetail.movie_Subtitle">
                                            <span class="module-info-item-title">字幕：</span>
                                            <div class="module-info-item-content">{{movieDetail.movie_Subtitle}}</div>
                                        </div>
                                        <div class="module-info-item" v-if="movieDetail.movie_Times">
                                            <span class="module-info-item-title">时长：</span>
                                            <div class="module-info-item-content">{{movieDetail.movie_Times}}</div>
                                        </div>
                                        <div class="module-info-item" v-if="movieDetail.iMDbScore">
                                            <span class="module-info-item-title">IMDb评分：</span>
                                            <div class="module-info-item-content">{{movieDetail.iMDbScore}}</div>
                                        </div>
                                        <div class="module-info-item" v-if="movieDetail.dBScore">
                                            <span class="module-info-item-title">豆瓣评分：</span>
                                            <div class="module-info-item-content">{{movieDetail.dBScore}}</div>
                                        </div>
                                    </div>
                                    <div class="module-info-footer">
                                        <div class="module-info-play">
                                            <a href="" class="main-btn btn-collect" title="立刻播放今日宜加油">
                                                <svg class="icon" aria-hidden="true">
                                                    <use xlink:href="#icon-bofang"></use>
                                                </svg>
                                                立即播放
                                            </a>
                                            <a href="" data-type="2" data-mid="1" data-id="205330"
                                               class="mac_ulog btn-large btn-collect"
                                               @click.prevent="addCollectMovie(movieDetail.movie_Id)">
                                                <svg class="icon" aria-hidden="true">
                                                    <use xlink:href="#icon-shoucang"></use>
                                                </svg>
                                                收藏
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- 电影 -->
                <div class="module" id="movieList">
                    <div class="module-heading">
                        <h2 class="module-title">
                            <a href="">电影
                                <span class="module-title-en">fenlei1</span>
                            </a>
                        </h2>
                        <div class="module-tab">
                            <label class="module-tab-name">
                                <span class="module-tab-value">推荐</span>
                                <i class="icon-arrow"></i>
                            </label>
                            <div class="module-tab-items">
                                <div class="module-tab-title">选择类型<span class="close-drop">
										<i class="icon-close"></i>
									</span>
                                </div>
                                <div class="module-tab-items-box">
                                    <span class="module-tab-item tab-item active" data-dropdown-value="推荐">推荐</span>
                                    <span class="module-tab-item tab-item" data-dropdown-value="动作片">动作片</span>
                                    <span class="module-tab-item tab-item" data-dropdown-value="喜剧片">喜剧片</span>
                                    <span class="module-tab-item tab-item" data-dropdown-value="爱情片">爱情片</span>
                                    <span class="module-tab-item tab-item" data-dropdown-value="科幻片">科幻片</span>
                                    <span class="module-tab-item tab-item" data-dropdown-value="恐怖片">恐怖片</span>
                                    <span class="module-tab-item tab-item" data-dropdown-value="剧情片">剧情片</span>
                                    <span class="module-tab-item tab-item" data-dropdown-value="战争片">战争片</span>
                                    <span class="module-tab-item tab-item" data-dropdown-value="纪录片">纪录片</span>
                                </div>
                            </div>
                        </div>
                        <div class="shortcuts-mobile-overlay"></div>
                    </div>
                    <div class="module-main tab-list active">
                        <div class="module-items module-poster-items-base">
                            <a href="" @click.prevent="getMovieDetail(result.movie_Id)"
                               :title="result.movie_ChineseName"
                               class="module-poster-item module-item" v-for="result in results">
                                <div class="module-item-cover">
                                    <div class="module-item-note">{{result.movie_Subtitle}}</div>
                                    <div class="module-item-pic">
                                        <img class="lazy lazyload"
                                             :data-original="result.movie_Picture"
                                             :alt="result.movie_ChineseName"
                                             referrerpolicy="no-referrer"
                                             width="180px"
                                             height="240px"
                                             :src="result.movie_Picture" style="">
                                    </div>
                                </div>
                                <div class="module-poster-item-info">
                                    <div class="module-poster-item-title">{{result.movie_ChineseName}}</div>
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
                <!-- 收藏页面  -->
                <div id="collect" style="display: none">
                    <div>
                        <span>这是收藏页面</span>
                        <table border="1" width="800px" height="400px" cellpadding="0" cellspacing="0">
                            <tr>
                                <th>电影编号</th>
                                <th>电影图片</th>
                                <th>电影名称</th>
                                <th>操作</th>
                            </tr>

                            <tr v-for="(collectMovie,index) in collectMovies.data">
                                <td>{{index+1}}</td>
                                <td>
                                    <img :src="collectMovie.movie_Picture" width="100px" height="100px"/>
                                </td>
                                <td>{{collectMovie.movie_Name}}</td>
                                <td>
                                    <a href="" class="delete" @click.prevent = "deleteCollectMovies(collectMovie.movie_Id)">删除</a>
                                </td>
                            </tr>
                        </table>
                        <span>这是收藏页面</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--底部 -->
    <div class="footer">
        <div class="content">
            <div class="module links-list" id="friendlink">
                <div class="module-heading">
                    <h3>友情链接</h3>
                </div>
                <div class="module-main">
                    <a href="" class="links-list-go" target="_blank">6080影视屋</a>
                </div>
            </div>
            <div class="footer-content">
                <div class="foot-logo">
                    <img class="logo2" src="view/images/logo.png" alt="飘花播播">
                </div>
                <div class="foot-copyright">
                    <p>
                        本站所有内容均来自互联网分享站点所提供的公开引用资源，未提供资源上传、存储服务
                        <span class="none">统计代码</span>
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    // 电影和电影详细相关
    var vm = new Vue({
        el: '#body',
        data: {
            keyword: '', //搜索的关键字
            results: [], //视频信息的结果
            movieDetail: {}, //电影详细
            collectMovies: [],
            user: {} //用户信息
        },
        created: function () {
            this.initview();
            this.getSessionInfo();
        },
        mounted:function (){
            let swipper1 = new Swiper('.gallery-thumbs', {
                spaceBetween: 1,
                // 自动切换
                autoplay: {
                    //用户滑动后，继续执行自动切换
                    disableOnInteraction: false,
                    delay: 2000,
                },
                // slidesPerView: 1,
                loop: true, // 循环模式选项
                loopedSlides: 5,
                watchSlidesVisibility: true,
                watchSlidesProgress: true,

            });
            let swipper2 = new Swiper('.gallery-top', {
                spaceBetween: 1,
                // 自动切换
                autoplay: {
                    //用户滑动后，继续执行自动切换
                    disableOnInteraction: false,
                    delay: 2000,
                },
                loop: true,
                loopedSlides: 5,
                // 如果需要前进后退按钮
                navigation: {
                    nextEl: '.swiper-button-next',
                    prevEl: '.swiper-button-prev',
                },
                // //如果需要分页器
                pagination: {
                    el: '.swiper-pagination',
                    clickable: true,
                },
                thumbs: {
                    swiper: swipper1
                },
            });
        },
        methods: {
            //初始化页面
            initview() {
                axios.get('/movies?method=getMovies&page=1&limit=20').then(response => {
                    this.results = response.data.data;
                });
            },
            //转换页面
            switchPage(pageId) {
                switch (pageId) {
                    case 1: //首页
                        window.location = 'index.html';
                        break;
                    case 2: //电影页
                        //显示电影列表页
                        $("#movieList").show();
                        //隐藏轮播图
                        $("#banner").hide();
                        //取消掉其他li标签的active类
                        $("#swiper-wrapper-9df256898cb2885c li").removeClass("active");
                        //为电影类增加active
                        $("#swiper-wrapper-9df256898cb2885c li:eq(2)").addClass("active");
                        break;
                    case 3:
                        break;
                    case 4:
                        break;
                    case 5:
                        break;
                    case 6:
                        break;
                    case 7:
                        break;
                    case 8: //收藏页相关
                        // 隐藏轮播图页面
                        $("#banner").hide();
                        // 隐藏电影列表
                        $("#movieList").hide();
                        //显示收藏页
                        $("#collect").show();
                        // 取消掉其他li标签的active类
                        $("#swiper-wrapper-9df256898cb2885c li").removeClass("active");
                        // 为电影类增加active
                        $("#swiper-wrapper-9df256898cb2885c li:eq(9)").addClass("active");
                        break;
                }
            },
            //显示我的精品收藏夹
            showCollect() {
                axios.get('/apiv2/collect?method=selectAllCollectMovies').then(response => {
                    this.collectMovies = response.data;
                })
            },
            //获取session中的信息
            getSessionInfo() {
                this.user = JSON.parse(window.sessionStorage.getItem('loginUser'));
            },
            //跳转到登录页
            userlogin() {
                console.log(1);
                window.location = "login.html";
            },
            //得到电影信息详细
            getMovieDetail(id) {
                //请求数据
                axios.get('/movies?method=getMovieDetailById&id=' + id).then(response => {
                    this.movieDetail = response.data.data;
                });
                $("#banner").hide();
                //显示电影详细信息
                $("#movieInfo").show();
                //隐藏电影列表
                $("#movieList").hide();
                //取消掉其他li标签的active类
                $("#swiper-wrapper-9df256898cb2885c li").removeClass("active");
                //为电影类增加active
                $("#swiper-wrapper-9df256898cb2885c li:eq(2)").addClass("active");
            },
            //收藏夹添加影片
            addCollectMovie(id) {
                axios.get('/apiv2/collect?method=addCollectMovies&id=' + id).then(response => {
                    alert(response.data.msg)
                })
            },
            //取消收藏影片
            deleteCollectMovies(id){
                axios.get('/apiv2/collect?method=deleteCollectMovies&id='+id).then(resp=>{
                    alert(resp.data.msg);
                    this.showCollect();
                })
            }
        }
    });
</script>
</html>
